Component({
  properties: {
    categories: {
      type: Array,
      value: []
    },
    activeCategory: {
      type: String,
      value: 'all'
    }
  },

  methods: {
    onTabTap(e) {
      const category = e.currentTarget.dataset.category;
      this.triggerEvent('change', { category });
    }
  }
});
